import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;

public class OrderServlet extends CommonServlet {
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		boolean isValid = checkPreviousPage(response, new String[] {"money"});

		OrderBean ob = new OrderBean();
		ob.populate(request);
		request.setAttribute("ob", ob);
		
		if(isValid) {
			RequestDispatcher dispatcher = request.getRequestDispatcher("/Order.jsp");
			dispatcher.forward(request, response);
		}
	}
}